<template>
  <div class="solution-container">
    <div class="title-container">
      <div class="title-left">
        <div class="title">解决方案</div>
        <AsideNumber :data="asideData" />
      </div>
      <More />
    </div>
    <div class="detail-container">
      <SolutionItem v-for="(item, i) in detailData" :key="i" :data="item" />
    </div>
  </div>
</template>

<script>
import AsideNumber from "./AsideNumber.vue";
import More from "./More.vue";
import SolutionItem from "./SolutionItem.vue";
import img1 from "@/assets/data/exports/Rectangle1395.png";
import img2 from "@/assets/data/exports/Rectangle13951.png";
import img3 from "@/assets/data/exports/Rectangle13952.png";
import img4 from "@/assets/data/exports/Rectangle13953.png";
export default {
  components: {
    AsideNumber,
    More,
    SolutionItem,
  },
  data() {
    return {
      asideData: [
        {
          text: "解决方案数",
          number: 30,
        },
      ],
      detailData: [
        {
          img: img1,
          title: "工业园区智慧消防整体解决方案",
        },
        {
          img: img2,
          title: "企业数字化转型整体解决方案",
        },
        {
          img: img3,
          title: "互联网+智慧中药材种植方案",
        },
        {
          img: img4,
          title: "车间自动剥片机组产线建设",
        },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.solution-container {
  .title-container {
    height: 25px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    .title-left {
      height: 100%;
      display: flex;
      align-items: center;
      .title {
        font-size: 22px;
        font-weight: bold;
        display: inline-block;
        margin-right: 20px;
      }
    }
  }
  .detail-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
</style>
